Python 3.8.13 (default, Oct 11 2023, 14:15:07) 
[GCC 11.2.0 20210728 (ROSA)] on linux
Type "help", "copyright", "credits" or "license()" for more information.
>>> 1 import time
2 arr = [2,12,44,1,0]
3 def bubble_sort(nums):
4   swapped = True
5   while swapped:
6    swapped = False
7    for i in range(len(arr) - 1):
8      if arr[i] > arr[i + 1]:
9         arr[i], arr[i + 1] = arr[i + 1], arr[i]
10        swapped = True
11 def read2list(filename):
12   file = open(filename, 'r')
13   data = file.readlines()
14   return
15 data_t_start = time.time()
16 bubble_sort('m1')
17 t_finish = time.time()
18 print("m1_sorted",round((t_finish-0)*1000),"milliseconds")
